import { defineResponseResolver } from '~~/mocks/define';
import {
  createResponseComposition,
  context,
  rest,
  ResponseResolver,
  setupWorker,
  response,
  RestRequest,
} from 'msw';
import db from '~/DB';
import { validateToken } from '~~/mocks/middleware/token';
import { validateMenu } from '~~/mocks/middleware/menu';
import { hasMenu } from '../utils/menu';

export default validateToken(async (req, res, ctx) => {
  return res(ctx.json({ message: 'test' }));
});
